home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 119 / MOBICLIC 119.ISO / pc / DATA / DCV119 / DCV119_00 / DCV119_00.swf / scripts / frame_25 / DoAction.as
Text File  |  2009-11-16  |  3KB  |  120 lines

  1. stop();
  2. hidemascotte({id:"b1"});
  3. BTON_DIAPO_GENE._visible = flagSpecialDiapo;
  4. NATUR.gotoAndPlay("E2");
  5. InitBT_QUIZ();
  6. BT_QUIZ._visible = true;
  7. w1.onRollOver = function()
  8. {
  9.    if(flagBTquiz)
  10.    {
  11.       this.useHandCursor = false;
  12.    }
  13.    else
  14.    {
  15.       this.useHandCursor = true;
  16.       joueSon({nomSon:"00_R01",zapBlock:"NOZAP_NOBLOCK",actionFin:"RIEN"});
  17.       this.gotoAndPlay("E2_ROLL");
  18.    }
  19. };
  20. w1.onPress = function()
  21. {
  22.    if(!flagBTquiz)
  23.    {
  24.       flagWiki = true;
  25.       _root.gotoAndStop("AIDE00");
  26.    }
  27. };
  28. w1.onRollOut = function()
  29. {
  30.    if(!flagBTquiz)
  31.    {
  32.       stopComment();
  33.       this.gotoAndPlay("E2");
  34.       flagWiki = false;
  35.    }
  36. };
  37. BTON_DIAPO_GENE.onRollOver = function()
  38. {
  39.    this.useHandCursor = true;
  40.    this.gotoAndStop("E2");
  41.    bruit({nomBruit:"PHOTO"});
  42.    bulle({refclip:this,suffixe:"_ALBUM"});
  43. };
  44. BTON_DIAPO_GENE.onPress = function()
  45. {
  46.    this.gotoAndStop("E1");
  47.    killbruit({nomBruit:"PHOTO"});
  48.    killbulle();
  49.    _root.BT_QUIZ.swapDepths(_root.BT_QUIZ.pDepth);
  50.    BT_QUIZ._visible = false;
  51.    _root.gotoAndStop("DIAPO_GENE");
  52.    hidemascotte({id:"b1"});
  53. };
  54. BTON_DIAPO_GENE.onRollOut = function()
  55. {
  56.    this.gotoAndStop("E1");
  57.    killbruit({nomBruit:"PHOTO"});
  58.    killbulle();
  59. };
  60. for(stuff in this)
  61. {
  62.    if(familyname({chaine:stuff}) == "ZONE_")
  63.    {
  64.       this[stuff].pName = this[stuff]._name;
  65.       this[stuff].pNo = extractNo({chaine:this[stuff].pName});
  66.       this[stuff].onRollOver = function()
  67.       {
  68.          pNo = this.pNo;
  69.          pName = this.pName;
  70.          this.useHandCursor = true;
  71.          gereCursor(2);
  72.          this.gotoAndPlay("E2");
  73.          bruit({nomBruit:gimme2digits(pNo)});
  74.          bulle({refclip:this,suffixe:gimme2digits(pNo)});
  75.       };
  76.       this[stuff].onPress = function()
  77.       {
  78.          pNo = this.pNo;
  79.          pName = this.pName;
  80.          gereCursor(1);
  81.          this.gotoAndStop("E1");
  82.          killbruit({nomBruit:gimme2digits(pNo)});
  83.          switch(pNo)
  84.          {
  85.             case 1:
  86.                var _loc4_ = "01_00";
  87.                break;
  88.             case 2:
  89.                _loc4_ = "02_00";
  90.                break;
  91.             case 3:
  92.                _loc4_ = "03_00";
  93.          }
  94.          killbulle();
  95.          _root.BT_QUIZ.swapDepths(_root.BT_QUIZ.pDepth);
  96.          BT_QUIZ._visible = false;
  97.          trace("-------> " + _loc4_);
  98.          _root.gotoAndStop(_loc4_);
  99.          var _loc3_ = 0;
  100.          while(_loc3_ < 3)
  101.          {
  102.             zoneId = "ZONE_" & gimme2digits(_loc3_);
  103.             delete _root[zoneId].onRollOver;
  104.             delete _root[zoneId].onPress;
  105.             delete _root[zoneId].onRollOut;
  106.             _loc3_ = _loc3_ + 1;
  107.          }
  108.          hidemascotte({id:"b1"});
  109.       };
  110.       this[stuff].onRollOut = function()
  111.       {
  112.          pName = this.pName;
  113.          this.gotoAndStop("E1");
  114.          gereCursor(1);
  115.          killbruit({nomBruit:gimme2digits(pNo)});
  116.          killbulle();
  117.       };
  118.    }
  119. }
  120.